#!/bin/bash
echo "猜数字大小"
while :
do 
    echo "请输入一个数字"
    read anum
    case $anum in 
    1 | 2 | 3 | 4 | 5) echo "你输入的数字是 $anum "
    ;;
    *) echo "你输入的数字不在1~5之间"
        # break
        continue
        echo "游戏结束了"
    ;;
    esac
done